Skip to content

Add configurable defaults via .thinktank/config.json and config command#102

Merged
that-github-user merged 1 commit into
mainfrom
issue-81-config-defaults
Mar 28, 2026
Merged

Add configurable defaults via .thinktank/config.json and config command#102
that-github-user merged 1 commit into
mainfrom
issue-81-config-defaults

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • .thinktank/config.json stores persistent defaults for attempts, model, timeout, runner, threshold
  • CLI flags > config file > built-in defaults (proper override hierarchy)
  • thinktank config set attempts 5 / get / list commands
  • 26 new tests for config system

Generated by thinktank Opus — 5 agents (2 timed out, 1 failed tests), Agent #3 recommended (143.33).

Change type

  • New feature

Related issue

Closes #81

How to test

npm test  # 118 tests pass
thinktank config set attempts 5
thinktank config get attempts  # → 5
thinktank config list  # shows all defaults
thinktank run "task"  # uses 5 agents without -n flag

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with thinktank (Opus)

- Config file at .thinktank/config.json with defaults for all flags
- CLI flags override config which overrides built-in defaults
- thinktank config set/get/list subcommands for managing defaults
- 26 new tests for config loading, merging, and CLI integration

Generated by thinktank Opus (5 agents, 2 pass, Agent #3 recommended).

Closes #81

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user

Copy link
Copy Markdown
Owner Author

Self-review: Config hierarchy correct (CLI > file > defaults). Config file created on first 'config set', not on install. All 118 tests pass, CI green.

@that-github-user that-github-user merged commit 353e120 into main Mar 28, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-81-config-defaults branch March 28, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configurable default attempts count (like effort levels)

1 participant